//
//  WYHXNetWorkManager.h
//  WYHXGameProject
//
//  Created by 常金城 on 2018/6/4.
//  Copyright © 2018年 liubo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>
@interface WYHXNetWorkManager : NSObject

/**
 封装AFHTTPSessionManager的GET请求方法

 @param path 请求的url
 @param params 请求的参数
 @param completionHandler 请求回调
 @return 返回值
 */
+ (id)get:(NSString *)path params:(NSDictionary *)params completionHandler:(void(^)(id responseObj, NSError *error))completionHandler;

/**
 封装AFHTTPSessionManager的POST请求方法

 @param path 请求的url
 @param params 请求的参数
 @param completionHandler 请求回调
 @return 返回值
 */
+ (id)post:(NSString *)path params:(NSDictionary *)params completionHandler:(void(^)(id responseObj, NSError *error))completionHandler;
// 上传图片
+(void)uploadSinglePhotoWith:(NSString *)path params:(NSDictionary *)params WithDataArray:(NSMutableArray *)dataArray withParamsArray:(NSMutableArray *)fileParams AndFinish:(void (^)(NSDictionary *, NSError *))completionHandler;
@end
